package org.xukai.dal.dataobject;

import org.apache.commons.beanutils.BeanUtils;
import org.hibernate.validator.constraints.NotBlank;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import javax.validation.constraints.Max;
import javax.validation.constraints.NotNull;
import java.lang.reflect.InvocationTargetException;

/**
 * @author xukai
 * @desc ${DISCRIPTION}
 * @create 2016-08-24-下午 5:29
 */
@Table(name="gbld_process_group_list")
public class GroupDO {
    @Id
    @Column(name = "fid")
    private Long id;

    @NotBlank
    @Column(name="group_code")
    private String groupCode;

    @Column(name="group_name")
    private String groupName;

    @NotNull
    @Max(8)
    @Column(name="user_name")
    private String userName;

    @Column(name="pass_word")
    private String password;

    @Column(name="isvalidated")
    private String isValidated;

    @Column(name="remark")
    private String remark;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getGroupCode() {
        return groupCode;
    }

    public void setGroupCode(String groupCode) {
        this.groupCode = groupCode;
    }

    public String getGroupName() {
        return groupName;
    }

    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getIsValidated() {
        return isValidated;
    }

    public void setIsValidated(String isValidated) {
        this.isValidated = isValidated;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    public String toString() {
        return "GroupDO{" +
                "groupName='" + groupName + '\'' +
                ", userName='" + userName + '\'' +
                ", password='" + password + '\'' +
                ", isValidated='" + isValidated + '\'' +
                ", remark='" + remark + '\'' +
                '}';
    }
}
